Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 4fb58b40bbc746523e3940bd0b0e48d77d554449


Parents : 25208fc
Author : Jeremy O'Brien <neutral@fastmail.com>
Date : 2026-05-20T18:10:19-04:00

Focus the selected user in the Conversations list when picking from Channels

Changes

1 files changed, 10 insertions(+), 1 deletions(-)


Diff

diff --git a/nomadnet/ui/textui/Channels.py b/nomadnet/ui/textui/Channels.py
index 8668d16..bdac4c2 100644
--- a/nomadnet/ui/textui/Channels.py
+++ b/nomadnet/ui/textui/Channels.py
@@ -1103,7 +1103,16 @@ class _ChatLinkDelegate:
except Exception:
pass
conversations = self.app.ui.main_display.sub_displays.conversations_display
- conversations.update_conversation_list()
+ try:
+ trust_level = self.app.directory.trust_level(bytes.fromhex(hash_hex))
+ except Exception:
+ trust_level = DirectoryEntry.UNKNOWN
+ target_filter = (conversations.LIST_FILTER_TRUSTED if trust_level == DirectoryEntry.TRUSTED
+ else conversations.LIST_FILTER_UNTRUSTED)
+ if conversations.list_filter != target_filter:
+ conversations._set_filter(target_filter)
+ else:
+ conversations.update_conversation_list()
conversations.display_conversation(None, hash_hex)
self.app.ui.main_display.show_conversations(None)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────